package com.Test;

public class Person {

    private Integer id;
    private String name;
    private String sex;
    private String height;
    private String weight;

    public Person() {
    }

    public Person(Integer id, String name, String sex, String height, String weight) {
        this.id = id;
        this.name = name;
        this.sex = sex;
        this.height = height;
        this.weight = weight;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        if (name != null) {
            return name;
        } else {
            return "";
        }
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        if (sex != null) {
            return sex;
        } else {
            return "";
        }
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getHeight() {
        if (height != null) {
            return height;
        } else {
            return "";
        }
    }

    public void setHeight(String height) {
        this.height = height;
    }

    public String getWeight() {
        if (weight != null) {
            return weight;
        } else {
            return "";
        }
    }

    public void setWeight(String weight) {
        this.weight = weight;
    }

    @Override
    public String toString() {
        return "Person{" + "id=" + id + ", name='" + name + '\'' + ", sex='" + sex + '\'' + ", height='" + height + '\'' + ", weight='" + weight + '\'' + '}';
    }
}
